package com.ruoyi.health.report.mapper;

import com.ruoyi.health.report.domain.HealthSuggestion;

import java.util.List;

/**
 * 健康报告主表Mapper接口
 *
 * @author ruoyi
 * @date 2023-10-25
 */
public interface HealthSuggestionMapper
{




    /**
     * 根据报告ID查询健康建议列表
     *
     * @param reportId 报告ID
     * @return 健康建议列表
     */
    public List<HealthSuggestion> selectHealthSuggestionListByReportId(Long reportId);

    /**
     * 查询健康建议
     *
     * @param id 健康建议ID
     * @return 健康建议
     */
    public HealthSuggestion selectHealthSuggestionById(Long id);

    /**
     * 查询健康建议列表
     *
     * @param healthSuggestion 健康建议
     * @return 健康建议集合
     */
    public List<HealthSuggestion> selectHealthSuggestionList(HealthSuggestion healthSuggestion);

    /**
     * 新增健康建议
     *
     * @param healthSuggestion 健康建议
     * @return 结果
     */
    public int insertHealthSuggestion(HealthSuggestion healthSuggestion);
    public int batchInsertHealthSuggestion(List<HealthSuggestion> list);

    /**
     * 修改健康建议
     *
     * @param healthSuggestion 健康建议
     * @return 结果
     */
    public int updateHealthSuggestion(HealthSuggestion healthSuggestion);

    /**
     * 删除健康建议
     *
     * @param id 健康建议ID
     * @return 结果
     */
    public int deleteHealthSuggestionById(Long id);

    /**
     * 批量删除健康建议
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHealthSuggestionByIds(Long[] ids);

    List<HealthSuggestion> selectHealthSuggestionListByReportIds(List<Long> reportIds);
}